package cn.homework.day05;

import java.util.ArrayList;
import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
        int[] arr = {23, 78, 12, 45, 11, 99};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));//排序后[11, 12, 23, 45, 78, 99]
        System.out.println(Arrays.binarySearch(arr, 11));//调用方法
    }
}
